//
//  LSZIndustryManager.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/10/27.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZIndustryManager.h"

@implementation LSZIndustryManager
-(id)initWithIndustry:(NSArray *)array
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        NSMutableArray * arrayMutData = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in array) {
            LSZIndustryMg * manager = [[LSZIndustryMg  alloc]init];
            manager.id_id = NullStringjudgment(NSStr(diction[@"id"]));
            manager.coverUrl =[NSString stringWithFormat:@"%@%@",URLTotalWeb,diction[@"coverUrl"]];
            manager.catalogName = NullStringjudgment(NSStr(diction[@"catalogName"]));
            manager.publishTime = NullStringjudgment(NSStr(diction[@"publishTime"]));
            manager.branchName = NullStringjudgment(NSStr(diction[@"branchName"]));
            manager.content = NullStringjudgment(NSStr(diction[@"content"]));
            manager.accountId = NullStringjudgment(NSStr(diction[@"accountId"]));
            manager.branchId = NullStringjudgment(NSStr(diction[@"branchId"]));
            manager.personNames = NullStringjudgment(NSStr(diction[@"personNames"]));
            if ([[diction allKeys] containsObject:@"catalogId"]) {
                manager.catalogId = NullStringjudgment(NSStr(diction[@"catalogId"]));
            }if ([[diction allKeys] containsObject:@"activityTime"]) {
                manager.activityTime = NullStringjudgment(NSStr(diction[@"activityTime"]));
            }if ([[diction allKeys] containsObject:@"address"]) {
                manager.address = NullStringjudgment(NSStr(diction[@"address"]));
            }if ([[diction allKeys] containsObject:@"subject"]) {
                manager.subject = NullStringjudgment(NSStr(diction[@"subject"]));
            }if ([[diction allKeys] containsObject:@"feedback"]) {
                manager.feedback = NullStringjudgment(NSStr(diction[@"feedback"]));
            }if ([[diction allKeys] containsObject:@"feedbackContent"]) {
                manager.feedbackContent = NullStringjudgment(NSStr(diction[@"feedbackContent"]));
            }
            //
            
            [arrayMutData addObject:manager];
        }
        self.arrayData = arrayMutData;
    }
    return self;
}
@end
@implementation LSZIndustryMg
@end
